package com.lx.dao;

import com.lx.entity.BankCard;
import com.lx.entity.User;

import java.sql.SQLException;
import java.util.List;

/**
 * @title: TradeDao
 * @projectName bankManage
 * @description: TODO
 * @author: yuanChu
 * @date: 2022/5/6  8:35
 */
public interface TradeDao {
    //存款
    Integer saveMoney(Double money, String cardId) throws SQLException;
    //取款
    Integer takeMoney(Double money,String cardId) throws SQLException;
    //根据手机号查询用户名下的银行卡信息
    List<BankCard> findBankCardByPhone(String phone) throws SQLException;
    //查询交易流水记录

}
